package com.aman.service.impl;

import com.aman.entity.dao.UserLogin;
import com.aman.mapper.AchUserLoginMapper;
import com.aman.service.AchUserLoginService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * description:
 * ********************
 *
 * @author lv jin
 * @date 2025/1/13 17:10
 */
@Service
@Slf4j
public class AchUserLoginServiceImpl implements AchUserLoginService {

    @Resource
    private AchUserLoginMapper achUserLoginMapper;
    @Override
    public Integer login(UserLogin userLogin) {
        if (this.achUserLoginMapper != null) {
           return achUserLoginMapper.login(userLogin);
        } else {
            // 处理异常情况
            throw new RuntimeException("AchUserLoginMapper is not initialized");
        }
    }

}
